package com.care.dao.model;

import java.util.Date;
import java.util.List;
import javax.persistence.*;

public class Forum {
    /**
     * 帖子ID
     */
    @Id
    @Column(name = "froum_id")
    private Integer froumId;

    /**
     * 帖子标题
     */
    private String title;

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Integer userId;

    @Transient
    private User user;
    
    /**
     * 社区管理员ID
     */
    @Column(name = "admin_id")
    private Integer adminId;

    @Transient
    private Admin admin;
    
    /**
     * 发布时间
     */
    @Column(name = "publish_time")
    private Date publishTime;

    private String pics;

    @Transient
    private List<String> picList;

    /**
     * 标签
     */
    private String tags;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 帖子内容
     */
    private String content;

    /**
     * 获取帖子ID
     *
     * @return froum_id - 帖子ID
     */
    public Integer getFroumId() {
        return froumId;
    }

    /**
     * 设置帖子ID
     *
     * @param froumId 帖子ID
     */
    public void setFroumId(Integer froumId) {
        this.froumId = froumId;
    }

    /**
     * 获取帖子标题
     *
     * @return title - 帖子标题
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置帖子标题
     *
     * @param title 帖子标题
     */
    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    /**
     * 获取用户ID
     *
     * @return user_id - 用户ID
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户ID
     *
     * @param userId 用户ID
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取社区管理员ID
     *
     * @return admin_id - 社区管理员ID
     */
    public Integer getAdminId() {
        return adminId;
    }

    /**
     * 设置社区管理员ID
     *
     * @param adminId 社区管理员ID
     */
    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    /**
     * 获取发布时间
     *
     * @return publish_time - 发布时间
     */
    public Date getPublishTime() {
        return publishTime;
    }

    /**
     * 设置发布时间
     *
     * @param publishTime 发布时间
     */
    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    /**
     * 获取标签
     *
     * @return tags - 标签
     */
    public String getTags() {
        return tags;
    }

    /**
     * 设置标签
     *
     * @param tags 标签
     */
    public void setTags(String tags) {
        this.tags = tags == null ? null : tags.trim();
    }

    /**
     * 获取状态
     *
     * @return status - 状态
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置状态
     *
     * @param status 状态
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 获取帖子内容
     *
     * @return content - 帖子内容
     */
    public String getContent() {
        return content;
    }

    /**
     * 设置帖子内容
     *
     * @param content 帖子内容
     */
    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    public List<String> getPicList() {
        return picList;
    }

    public void setPicList(List<String> picList) {
        this.picList = picList;
    }
}